<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* @framework : Codeigniter Framework
* 
* @author: fatangel26
* 
*/
    
    class Admin_Controller extends MY_Controller
    {
        public function __construct()
        {
            parent::__construct();
            
            $this->_data['sidebar'] = $this->displaySidebar();
            
            $this->_data['breadcrumb'] = $this->displayBreadCrumb();
        }
        
        public function displaySidebar()
        {
            $output = '';
            
            $this->load->model("backend/cart_model", "MCart", TRUE);
            
            $data['nums_order'] = $this->MCart->getNumsOrder();
            
            $output = $this->load->view("backend/includes/sidebar", $data, TRUE);
            
            return $output;
        }
        
        public function displayBreadCrumb()
        {
            $output = '';
            
            $output = $this->load->view("backend/includes/breadcrumb", $data='', TRUE);
            
            return $output;
        }
        
        public function displayLeftContent()
        {
            $output = '';
            
            $this->load->model("backend/menu_model","MMenu",TRUE);
            
            $menus = $this->MMenu->select(array('order_by' => 'ASC'));
            
            $data['tree_menu'] = $this->MMenu->build_tree($menus, $parent_id = 0);
            
            $output = $this->load->view("backend/menu/lecture", $data, TRUE);
            
            return $output;
        }
        
    }



/* End of file Admin_Controller.php */
/* Location: ./Core/Admin_Controller.php */